package com.sanyang.logistics.liuxu.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.sanyang.logistics.liuxu.dao.Dwdao;
import com.sanyang.logistics.pojo.Product;
import com.sanyang.logistics.pojo.StandardUnit;
import com.sanyang.logistics.pojo.Warehouse;

@Repository("dwservice")
public class DwServiceimpl implements DwService{
	
	@Autowired
	private Dwdao ddao;
	
    //模糊查询
//	@Override
//	public List<StandardUnit> dwqueryOne(StandardUnit sUnit) {
//		List<StandardUnit> dwqueryOne = ddao.dwqueryOne(sUnit);
//		return dwqueryOne;
//	}
	
	//查询全部
	@Override
	public List<StandardUnit> dwqueryAll(StandardUnit unit) {
		List<StandardUnit> dwqueryAll = ddao.dwqueryAll(unit);
		return dwqueryAll;
	}
	
	
    //删除
	@Override
	public void dwdel(Integer unitid) {
	    ddao.dwdel(unitid);
		
	}
    //添加
	@Override
	public void dwinsert(StandardUnit sUnit) {
		ddao.dwinsert(sUnit);
	}
	//修改拿值
	@Override
	public StandardUnit dwxuigai(Integer unitid) {
		return ddao.dwxuigai(unitid);
	}
	//修改
	@Override
	public void dwupdate(StandardUnit sUnit) {
	ddao.dwupdate(sUnit);
	}


	@Override
	public List<StandardUnit> queryStandard_unit() {
		// TODO Auto-generated method stub
		return ddao.queryStandard_unit();
	}


	
	

}
